Page({
  data: {
    activeTab: 0,
		tabs: ['星星票', '电子金币', '娃娃点'],
		records: [
      {
        title: '手动清除',
        amount: '-9',
        store: '开星客万达开发区店',
        date: '04-27',
        timeLabel: '时间',
        remaining: 0
      },
      {
        title: '消费兑换',
        amount: '-3',
        store: '星享城旗舰店',
        date: '04-28',
        timeLabel: '时间',
        remaining: 1
      }
    ]
  },

  switchTab: function (e) {
    const index = e.currentTarget.dataset.index;
    this.setData({
      activeTab: index
    });
  },

  goRecharge: function () {
    wx.showToast({
      title: '前往充值',
      icon: 'none'
    });
  }
});
